// 版权归 瞄你个汪 所有。使用本代码应遵守相关法律法规和Apache 2.0开源许可要求。
package top.geeke.database.seed;

import top.geeke.entity.SysUserExtOrg;
import top.geeke.toolkit.supertable.seed.SuperSeedData;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 系统用户扩展机构表种子数据
 * </p>
 *
 * @author 瞄你个汪
 * @since 2024/5/26 8:13
 */
public class SysUserExtOrgSeedData implements SuperSeedData<SysUserExtOrg> {
    @Override
    public List<SysUserExtOrg> getSeedData() {
        return new ArrayList<SysUserExtOrg>(){{
            add(newInstance(1300000000101L, 1300000000111L, 1300000000202L, 1300000000106L));
            add(newInstance(1300000000102L, 1300000000114L, 1300000000302L, 1300000000108L));
        }};
    }

    public SysUserExtOrg newInstance(Long id, Long userId, Long orgId, Long posId) {
        SysUserExtOrg extOrg = new SysUserExtOrg();
        extOrg.setId(id);
        extOrg.setUserId(userId);
        extOrg.setOrgId(orgId);
        extOrg.setPosId(posId);
        return extOrg;
    }
}
